#ifndef KMP_H
#define KMP_H
#include "StringMatch.h"

class KMP : public StringMatch
{
private:
    char* next;
public:
    KMP(string ori, string pat): StringMatch(ori,pat)
    {
        next = new char[pattern.length()+1];
    }
    void match();
    void getNext();
};

#endif // KMP_H
